package com.xmall.auth.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xmall.auth.entity.SysMenu;
import com.xmall.auth.entity.SysMenuNode;

import java.util.List;

/**
 * <p>
 * 后台菜单表 服务类
 * </p>
 *
 * @author liuzh
 * @since 2020-06-11
 */
public interface ISysMenuService extends IService<SysMenu> {
    boolean saveMenu(SysMenu sysMenu);

    boolean updateMenu(Long id, SysMenu sysMenu);

    boolean deleteMenu(Long id);

    SysMenu getItem(Long id);

    List<SysMenu> listByParentId(Long parentId);

    List<SysMenuNode> treeList();

    /**
     * 修改菜单显示状态
     */
    boolean updateHidden(Long id, Integer hidden);
}
